﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class SystemNetNetworkInformationIPInterfacePropertiesWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(System.Net.NetworkInformation.IPInterfaceProperties);
			Utils.BeginObjectRegister(type, L, translator, 0, 2, 10, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIPv4Properties", _m_GetIPv4Properties);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetIPv6Properties", _m_GetIPv6Properties);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsDnsEnabled", _g_get_IsDnsEnabled);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DnsSuffix", _g_get_DnsSuffix);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsDynamicDnsEnabled", _g_get_IsDynamicDnsEnabled);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "UnicastAddresses", _g_get_UnicastAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "MulticastAddresses", _g_get_MulticastAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "AnycastAddresses", _g_get_AnycastAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DnsAddresses", _g_get_DnsAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "GatewayAddresses", _g_get_GatewayAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "DhcpServerAddresses", _g_get_DhcpServerAddresses);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "WinsServersAddresses", _g_get_WinsServersAddresses);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "System.Net.NetworkInformation.IPInterfaceProperties does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "System.Net.NetworkInformation.IPInterfaceProperties does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetIPv4Properties(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetIPv4Properties(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetIPv6Properties(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                        var gen_ret = gen_to_be_invoked.GetIPv6Properties(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsDnsEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsDnsEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DnsSuffix(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.DnsSuffix);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_IsDynamicDnsEnabled(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsDynamicDnsEnabled);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UnicastAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.UnicastAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_MulticastAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.MulticastAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_AnycastAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.AnycastAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DnsAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.DnsAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_GatewayAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.GatewayAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DhcpServerAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.DhcpServerAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_WinsServersAddresses(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                System.Net.NetworkInformation.IPInterfaceProperties gen_to_be_invoked = (System.Net.NetworkInformation.IPInterfaceProperties)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.WinsServersAddresses);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
